﻿/*
 * Copyright (C) 2011 The Calculator for Android Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package net.japminh.tool.calculator;

/**
 * 定数クラス
 * 
 * @author thangns
 *
 */
public interface Const {

	/**
	 * ログ出力に使用される共通のタグ
	 */
	public static final String LOG_TAG = "net.japminh.tool.calculator";

	/**
	 * 演算に使用する数字の最大桁数
	 */
	public static final int INPUT_MAX_LENGTH = 14;

	/**
	 * 演算結果を出力のフォーマット
	 */
	public static final String FORMAT_STRING = "%." + Const.INPUT_MAX_LENGTH + "f";

	/**
	 * 演算に使用する数字の最大値
	 */
	public static final double MAX_VALUE = 999999999999999.0;

	public static final double DEFAULT_DOUBLE_VALUE = 0.0;

	public static final boolean DEFAULT_BOOLEAN_VALUE = false;
}
